from flask import Flask
from flask import send_file

app = Flask(__name__, static_folder='./static')


@app.route("/index")
def index():
    # 首页
    return send_file("templates/index.html")


@app.route("/log-in")
def login():
    # 登录
    return send_file("templates/log-in.html")


@app.route("/register")
def register():
    # 注册
    return send_file("templates/register.html")


@app.route("/single-movie")
def single_movie():
    # 播放影片
    return send_file("templates/single-movie.html")


@app.route('/test_api')
def test_api():
    # 测试
    return send_file('test_api.html')


if __name__ == '__main__':
    app.run(debug=True)
